import { stringify } from "qs";
import request from "@/utils/request";

export async function BrandList(params) {
  return request(`/brand/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function removeBrand(params) {
  return request(`/brand/del/${params.code}`, {
    method: "POST",
    body: {}
  });
}

export async function addUser(params) {
  return request("/brand/add", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function editUser(params) {
  return request("/brand/edit", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function deptQuery(params) {
  return request("/dept/query", {
    method: "POST",
    body: params
  });
}

export async function clientDetail(params) {
  console.log('desc',params);
  return request(`/brand/detail/${params.adminNo}`, {
    method: "POST",
    body:{}
  });
}
export async function brandChange(params) {
  console.log(params);
  return request("/brand/sort/change", {
    method: "POST",
    body: params
  });
}
export async function brandstatus(params) {
  console.log(params);
  return request("/brand/status", {
    method: "POST",
    body: params
  });
}
